Widget: Disable css box drawing for GtkWindow
authorTimm Bäder <mail@baedert.org>
Wed, 3 May 2017 08:17:58 +0000 (10:17 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:10 +0000 (21:27 -0400)
Until we know how we solve that.

gtk/gtkwidget.c

index bda6ec85075df44cc6bbcabeb7cabf1bb22440b5..2e5203f7082d65988955bd1caac9a17d3ff1a475 100644 (file)
@@ -15365,17 +15365,19 @@ gtk_widget_snapshot (GtkWidget   *widget,
 
   _gtk_widget_get_allocation (widget, &allocation);
 
-  gtk_snapshot_offset (snapshot, margin.left, margin.top);
-  gtk_css_style_snapshot_background (style,
+  if (!GTK_IS_WINDOW (widget))
+    {
+      gtk_snapshot_offset (snapshot, margin.left, margin.top);
+      gtk_css_style_snapshot_background (style,
+                                         snapshot,
+                                         allocation.width - margin.left - margin.right,
+                                         allocation.height - margin.top - margin.bottom);
+      gtk_css_style_snapshot_border (style,
                                      snapshot,
                                      allocation.width - margin.left - margin.right,
                                      allocation.height - margin.top - margin.bottom);
-  gtk_css_style_snapshot_border (style,
-                                 snapshot,
-                                 allocation.width - margin.left - margin.right,
-                                 allocation.height - margin.top - margin.bottom);
-  gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
-
+      gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
+    }
 
   if (mode == RENDER_DRAW)
     {